package main

import (
	"fmt"
	"strconv"
)

func main() {

	slice := make([]byte, 0, 1024) // 字节组切片,初始个数0,容量1024
	slice = strconv.AppendBool(slice, true)
	fmt.Println("slice = ", string(slice))
	slice = strconv.AppendInt(slice, 1234, 10) //10进制方式追加
	slice = strconv.AppendQuote(slice, "abcgohello")

	fmt.Println("slice = ", string(slice))
}
